﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Kevin.SLUserControlLibrary
{
    public class ColorPickerSelectedItem : ContentControl
    {
        public static readonly DependencyProperty DisplayColorProperty = DependencyProperty
           .Register("DisplayColor", typeof(SolidColorBrush), typeof(ColorPickerSelectedItem), null);

        public ColorPickerSelectedItem()
        {
            this.DefaultStyleKey = typeof(ColorPickerSelectedItem);
        }

        public SolidColorBrush DisplayColor
        {
            get { return (SolidColorBrush)GetValue(ColorPickerSelectedItem.DisplayColorProperty); }
            set { SetValue(ColorPickerSelectedItem.DisplayColorProperty, value); }
        }
    }
}
